// Copyright (C) ustc9703
// All rights reserved.
// 
// Author : Jiang Li
// Date   : 2004-12-21

#ifndef __ASYNC_LOGIN_H_SERVER_SVR_MAIN__
#define __ASYNC_LOGIN_H_SERVER_SVR_MAIN__

#pragma once

#include <common/svr_base/svr_user.h>

namespace JoyServer
{

class CJoyMainUser;
class CJoyAsyncLoginFinish;

class CJoyAsyncLogin : public CJoyUserAsyncObject
{
public:

    UINT DoLogin();

    virtual void OnExecute();
public:
    CJoyAsyncLogin(CJoyMainUser* pUser);
    virtual ~CJoyAsyncLogin();
};

class CJoyAsyncLogout : public CJoyUserAsyncObject
{
public:
    virtual void OnExecute();
public:
    CJoyAsyncLogout(CJoyMainUser* pUser);
    virtual ~CJoyAsyncLogout();
};

} // namespace JoyServer

#endif  // __ASYNC_LOGIN_H_SERVER_SVR_MAIN__
